<template>
	<view>
		<image class="bgimage" src="../../static/images/bgimage1.jpg"></image>	
		<view class="head">
			<svg t="1635742429723" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4531" width="200" height="200"><path d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m-50.432-326.101333L310.613333 504.32a32 32 0 0 0-45.226666 45.226667l174.72 174.762666a32.341333 32.341333 0 0 0 0.341333 0.341334l0.256 0.213333a32 32 0 0 0 50.048-6.144l337.450667-379.605333a32 32 0 1 0-47.872-42.496l-318.762667 358.613333z" fill="#52C41A" p-id="4532"></path></svg>
		</view>
		
	  <view class="">
	  	<div class="div">
			<view class="div-div2">
				<view class="div-headline">预约信息</view>
				<view class="">姓名：张三</view>
				<view class="">班别：19软件工程2班</view>
				
				<view class="div-headline2">座位信息</view>
				<view class="">综合楼B栋 107</view>
				<view class="">座位号：15</view>
			</view>
	  		
	  	</div>
		<view class="">
			<button class="" @click="qingjia()" type="default">请假</button>
			<button class="" @click="xuyue()" type="default">续约</button>
			<button class="huan" @click="guihuan()" type="default">归还/退选</button>
		</view>
	  </view>
	</view>
</template>

<script>
	import itemList from "../../components/itemListUser/itemListUser.vue"
	export default {
		
		data() {
			return {
				UserList:[]
	
			}
		},
		onLoad(){
			this.getUsers()
		},
		methods: {
			async	getUsers(){
				console.log("获取数据")/*获取到课室的相关信息*/
			  const res = await this.$myRequest({
				 url:"/students"
			 })
				this.UserList = res.data.data[14]
				},
				
		    qingjia() {
		    	this.show = false;
		    	uni.navigateTo({
		    	url:"/",
		    				})
		    		},
		    xuyue(){
		    	uni.navigateTo({
		    	url:"/"
		    	})
		   },
		   guihuan(){
		    	uni.navigateTo({
		    	url:"/"
		    	})
		   }
		
		},
		components:{
			itemList
		}
	}
	
</script>

<style lang="scss">
	
	button  {
		margin-top: 7%;
		margin-left: 63rpx;
		z-index: 10;
		float: left;
		width: 160rpx;
		height: 95rpx;
		border-radius: 20rpx;
		background-color: #02a7ff;
		padding: 2px;
		color: white;
		font-size: 33rpx;
		font-weight: 600;
		box-shadow: darkgray 2px 2px 4px;
	}
	.div{
		opacity: 0.6;
		z-index: 10;
			
			&-headline{
				
			font-weight: 600;
			
			padding-bottom: 8rpx;
			
			}
			&-headline2{
			font-weight: 600;
			padding-top:40rpx;
			padding-bottom: 8rpx;
			
			}
			&-div2{
			opacity:1;
			text-align: center;
			z-index: 14;
			font-size: 400;
			padding: 27rpx;
			margin-top: 20%;
			margin-left: 10%;
			z-index: 10;
			height: 380rpx;
			width: 500rpx;
			border: solid lightgrey 3px; 
			background-color: white;
			}
		
	}
	.huan{
		font-size:32rpx;
	}
	.bgimage {
		margin-top: 15%;
		background-repeat: no-repeat;
		position: absolute;
		z-index: -10;
		background-size: 100%;
		width: 100%;
		min-height: 90%;
		max-height: 90%;
		opacity: 0.6;
		
	}
  page{
	  z-index: 9998;
  }
  .head{
  	position: relative;
		top: 150rpx;
		svg{
		   margin-left: 299rpx;
			left: 80%;
			width: 150rpx;
			height: 150rpx;
			margin-bottom: 60rpx;
		}
		
		.butt{
			width: 60%;
			height: 85rpx;
			background-color: #0099FF;
			color: white;
			border-radius: 35rpx;
			text-align: center;
			font-size: 35rpx;
			box-shadow: darkgray 2px 2px 4px;
		}
	}
	.popup{
		height: 390rpx;
		background-color: #fcfcfc;
		border-top-left-radius: 40rpx;
		border-top-right-radius: 40rpx;
		text-align: center;
		left: 0;
		right: 0;
		position: fixed;
		bottom: 0rpx;
		z-index: 9999;
		text{
			align-items: center;
			justify-content: center;
			display: flex;
			text-align: center;
			font-size: 36rpx;
			padding: 100rpx 0rpx 100rpx 0rpx;
		}
		.but2{
			text-align: center;
			height: 120rpx;
			bottom: 20rpx;
			position: fixed;
			
		}
		.agree,.cancel{
			text-align: center;
			width: 280rpx;
			height: 86rpx;
			font-size: 32rpx;
			border-radius: 20rpx;
		}
		.agree{
			background-color:#e0e0e0;
			position: fixed;
			left: 10%;
		}
		.cancel{
			color: #ffffff;
			background-color:#108ee9;
			position: fixed;
			right: 10%;
		}
	}
</style>
